package com.skytech.component.crawler.web;


import com.skytech.component.crawler.special.HKEXNEWS;
import com.skytech.component.crawler.special.ShanghaiSec;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class CrawlerSpecialController {
    @Autowired
    private ShanghaiSec shanghaiSec;
    @Autowired
    private HKEXNEWS hkexnews;


    @GetMapping("crawler/start/ShanghaiSec")
    public void startShanghaiSec(){
        shanghaiSec.start();
    }

    @GetMapping("crawler/start/HKEXNEWS")
    public void startHKEXNEWS(){
        hkexnews.start();
    }

}
